package net.roseindia.controllers;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.context.ContextLoaderListener;


@Controller
public class HelloWorldController {
	
	private static final Logger logger = LoggerFactory.getLogger(HelloWorldController.class);
	   @RequestMapping("/helloworld")
	   public ModelAndView helloWord(){
		   
		   logger.info("helloWord!!");
		   
		      String message = "Hello World, Spring 3.0!!!!!";
		      return new ModelAndView("helloworld", "message",message);
	   }
  }
